package model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the TERRITORY_STATE database table.
 * 
 */
@Entity
@Table(name="TERRITORY_STATE")
public class TerritoryState implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private TerritoryStatePK id;

	//bi-directional many-to-one association to Territory
	@ManyToOne
	@JoinColumn(name="TERRITORY_ID")
	private Territory territory;

	public TerritoryState() {
	}

	public TerritoryStatePK getId() {
		return this.id;
	}

	public void setId(TerritoryStatePK id) {
		this.id = id;
	}

	public Territory getTerritory() {
		return this.territory;
	}

	public void setTerritory(Territory territory) {
		this.territory = territory;
	}

	
}